import request from '@/utils/request'

// 查询物流订单列表
export function listLogisticsmaster(query) {
  return request({
    url: '/logisticsmaster/logisticsmaster/list',
    method: 'get',
    params: query
  })
}

// 查询物流订单详细
export function getLogisticsmaster(logisticsId) {
  return request({
    url: '/logisticsmaster/logisticsmaster/' + logisticsId,
    method: 'get'
  })
}

// 新增物流订单
export function addLogisticsmaster(data) {
  return request({
    url: '/logisticsmaster/logisticsmaster',
    method: 'post',
    data: data
  })
}

// 修改物流订单
export function updateLogisticsmaster(data) {
  return request({
    url: '/logisticsmaster/logisticsmaster',
    method: 'put',
    data: data
  })
}

// 删除物流订单
export function delLogisticsmaster(logisticsId) {
  return request({
    url: '/logisticsmaster/logisticsmaster/' + logisticsId,
    method: 'delete'
  })
}
